
cmake_minimum_required(VERSION 3.0)

project(qsv_decoder)

add_definitions(-std=c++11 -Wall -Wshadow -lpthread)

include_directories(./)
include_directories(./../)
include_directories(/usr/local/include/)

link_directories(/usr/local/lib/)
link_directories(/usr/local/lib64/)

set(lib avutil swscale swresample avcodec avformat avfilter avdevice)

set(SRC_LIST ./)
aux_source_directory(./ SRC_LIST)

message(${SRC_LIST})

add_executable(${PROJECT_NAME} main.cpp)
add_executable(${PROJECT_NAME}2 hw_decoder.cpp)

target_link_libraries(${PROJECT_NAME} ${lib})
target_link_libraries(${PROJECT_NAME}2 ${lib})


